package dominion.model.monies;

import dominion.model.Card;
import dominion.model.Player;
import dominion.utils.Constants;

public class Copper extends Coin {

	public Copper() {
		this.cost = 0;
		this.value = 1;
	}

	@Override
	public Card clone() {
		return new Copper();
	}

	@Override
	public String toString() {
		return "Copper";
	}

	@Override
	public String getDescription() {
		StringBuffer sb = new StringBuffer();
		sb.append(super.getDescription());
		sb.append("Worth 1 money\n");
		return sb.toString();
	}

	@Override
	public void doAction(Player player) {
		player.changeMoney(1);
		Copper copper = (Copper) player.drawFromDeck("copper", Constants.HAND);
		player.addToDeck(copper, Constants.PLAY_SPACE);
	}
}
